home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cpptutor.arc / CAR.CPP < prev    next >
Text File  |  1991-04-28  |  368b  |  23 lines

  1.                                   // Chapter 7 - Program 5
  2. #include "car.hpp"
  3.  
  4.  
  5. void car::initialize(int in_wheels, float in_weight, int people)
  6. {
  7.    passenger_load = people;
  8.    vehicle::initialize(in_wheels, in_weight);
  9. }
  10.  
  11.  
  12. int car::passengers(void)
  13. {
  14.    return passenger_load;
  15. }
  16.  
  17.  
  18.  
  19.  
  20. // Result of execution
  21. //
  22. // (this file cannot be executed)
  23.